import { createApp } from 'vue'
import router from './router';
import App from './App.vue'
import 'normalize.css';
import Antd from 'ant-design-vue';

function setRem() {
    const docEl = document.documentElement;
    const clientWidth = docEl.clientWidth;
    if (!clientWidth) return;
    docEl.style.fontSize = 100 * (clientWidth / 1920) + 'px'; // 1920 为设计稿宽度
}

setRem();
window.addEventListener('resize', setRem);

const app = createApp(App).use(router).use(Antd).mount('#app')
